package cn.wolfcode.rbac.mapper;

import cn.wolfcode.rbac.domain.Department;
import cn.wolfcode.rbac.domain.Employee;
import cn.wolfcode.rbac.qo.DepartmentQo;
import cn.wolfcode.rbac.qo.EmployeeQo;

import java.util.List;

public interface DepartmentMapper {
    //按主键id删除部门
    int deleteByPrimaryKey(Long id);

    //添加部门
    int insert(Department record);

    //按主键id查询部门
    Department selectByPrimaryKey(Long id);

    //查询所有部门
    List<Department> selectAll();

    //修改部门
    int updateByPrimaryKey(Department record);

    //条件查询部门信息
    public List<Department> selectByCondition(DepartmentQo qo);
}